using System;
using Kangaroo.Deferreds;
using Kangaroo.Model;

namespace Kangaroo.IDAL
{
    public interface IAlarm
    {
        #region Synchronous methods

        AlarmInfo[] ListAlarmsAfter(Int64 key);

        AlarmInfo[] ListLastAlarmForEachChannel();

        #endregion

        #region Asynchronous methods

        IDeferred<AlarmInfo[]> ListAlarmsAfterAsync(long key);

        IDeferred<AlarmInfo[]> ListLastAlarmForEachChannelAsync();

        #endregion

    }
}